﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmMainNew.aspx.cs" Inherits="frmMainNew" %>

<%@ Register Src="UserControls/ucLeftNavigation.ascx" TagName="ucLeftNavigation"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>业务办公区</title>
    <link rel="stylesheet" id="skinCss" type="text/css" href="css/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="css/icon.css" />
    <style type="text/css">
        body {
            height: 100%;
            width: 100%;
        }
    </style>

    <script type="text/javascript" src="ScriptFile/jquery.js"></script>
    <script type="text/javascript" src="ScriptFile/jquery.easyui.min.js"></script>
    <script src="ScriptFile/Common/Jquery.Common.js" type="text/javascript"></script>
    <script src="ScriptFile/JqueryPostService.js" type="text/javascript"></script>
    <script src="ScriptFile/cookie.js" type="text/javascript"></script>
    <script type="text/javascript">
        //显示进度条
        function ShowLoading() {
            //定时器2秒
            $.messager.progress({
                title: '请稍候',
                msg: '数据加载中...'
            });
        }

        //隐藏进度条
        function HideLoading() {
            $.messager.progress('close');
        }

        //控制右侧区域的展开和折叠
        function ctrlRegion(nType, strRegion) {
            strAction = "";
            if (nType == 1) {
                //隐藏east侧区域
                if (strAction == "expand") {
                    $('#divBody').layout('collapse', strRegion); //折叠
                    strAction = "collapse";
                }
            }
            else {
                if (strAction == "collapse") {
                    $('#divBody').layout('expand', strRegion); //展开
                    strAction = "expand";
                }
            }
        }

        //消息框
        function loadMsg(strMsg) {
            $.messager.show({
                title: '待办事项(5秒后自动关闭)',
                msg: strMsg,
                timeout: 5000,
                height: 170,
                showType: 'slide'

            });
        }

        //设置标题头
        function loadTitle(strId, strTile) {
            $("#" + strId).panel({ title: strTile });
        }

        //关闭窗口
        function CloseDivDlg() {
            $('#dlgConfig').window('close');
        }


        //显示待办信息
        function AppearDaiBan(result) {
            if (result != "") {
                json = result.toJson(); //格式化
                var strHtml = "<table>";
                for (key in json) {
                    if (key == "dys_gs") {
                        setCookie('dys_gs', json[key].toString());
                        strHtml += "<tr><td><a href=javascript:addTab('office/OnlineTask.aspx?Business=0','网上申报受理')>待受理网上办件已变化，您目前有" + json[key].toString() + "条待受理网上办件</a></td></tr>";
                    }
                    if (key == "dbz_gs") {
                        setCookie('dbz_gs', json[key].toString());
                        strHtml += "<tr><td><a href=javascript:addTab('office/OnlineTask.aspx?Business=1','补正件重新受理')>待受理补正件列表已变化，您目前有" + json[key].toString() + "条待受理补正件</a></td></tr>";
                    }
                    if (key == "dbj_gs") {
                        setCookie('dbj_gs', json[key].toString());
                        strHtml += "<tr><td><a href=javascript:addTab('" + strDbsjUrl + "','我的待办件')>待办事项列表已变化，您目前有" + json[key].toString() + "条待办件</a></td></tr>";
                    }
                }
                strHtml += "</table>";
                loadMsg(strHtml);
            }
        }

        //打开内嵌网页的通用方法1（window）
        function openDivDlg(strTitle, strUrl, divWidth, divHeight) {
            //增加参数queryid
            $('#dlgConfig').window({
                title: strTitle, width: divWidth, height: divHeight
            });

            $('#iframeConfig').attr("src", strUrl);

            // $('#dlgConfig').window({ maximized: true });
            $('#dlgConfig').window('open');
        }


        $(document).ready(function () {
            initWinInfo(); //加载各类待办件的提醒
            //$('#divBody').layout('collapse', 'east');

            var MyMar = setInterval(GetDaiBanInfo, 900000); //定时(15分钟)扫描待办件
        });
    </script>
</head>
<body class="easyui-layout" id="divBody" onload="HideLoading();">
    <script type="text/javascript">
        ShowLoading(); //开启进度条
    </script>
    <div id="divNorth" region="north" split="false" style="height: 63px; margin: 0px; padding: 0px">
        <table style="background-color: #A5D4E4; background-repeat: repeat-x; height: 60px"
            border="0" cellspacing="0" cellpadding="0" width="100%">
            <tbody>
                <tr>
                    <td style="color: #e04f22; font-size: 10pt; background-image: url(images/topbar3.jpg); width: 100%; background-repeat: no-repeat;">
                        <a style="float: right" href="Default.aspx" target="_parent">退出登录</a>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div id="divwest" region="west" title='功能导航' split="true" style="width: 130px;">
        <uc1:ucLeftNavigation ID="ucLeftNavigation1" runat="server" />
    </div>
    <div id="divsouth" region="south" split="false" style="overflow: hidden; height: 28px;">
        <div class="easyui-layout" fit="true" style="background: #ccc;">
            <div id="starusscale" region="west" split="true" style="width: 129px; z-index: -10;">
            </div>
            <div id="statusbar" region="center">
            </div>
        </div>
    </div>
    <div region="east" id="divEast" split="true" title="公示信息" style="padding-left: 0px; margin-left: 0px; width: 150px;">
        <iframe id="ifmGsxx" scrolling="no" frameborder="0" src="ManageInside/TzggInfo.aspx?dataType=地图审核相关规定"
            style="width: 100%; height: 100%;"></iframe>
    </div>
    <div region="center" title="业务办公区" id="divCenter">
        <div class="easyui-tabs" id="divMain" fit="true" border="true">
            <%--<div id="divIndex" title="我的待办件" icon="icon-search" closable="false" style="padding: 2px;
                overflow: hidden;">
                <iframe src="" width="100%" height="100%" frameboder="0"
                    id="我的待办件"></iframe>
               
            </div>--%>
        </div>
        <!--  信息查看  -->
        <div id="dlgConfig" class="easyui-window" title="信息查看" closed="true" modal="false"
            minimizable="false" style="width: 400px; height: 300px; background: #fafafa;">
            <iframe id="iframeConfig" scrolling="yes" frameborder="0" src="" style="width: 100%; height: 100%;"></iframe>
        </div>
    </div>
</body>
</html>
